'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //注册
  router.post('/api/registry',controller.user.registry);
  //登录
  router.post('/api/login',controller.user.login);
  //注销
  router.get('/api/logout',controller.user.logout);
  //修改密码
  router.post('/api/editPassword',controller.user.editpassword);
  //修改个人信息
  router.post('/api/editInfo',controller.user.editInfo);
};
